package com.contactbook.web.client.dto;

import java.io.Serializable;

import java.util.HashSet;
import java.util.Set;

public class AccountDTO implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private int id;
	private String login;
	private String password;
    private Set<GroupDTO> groups = new HashSet<GroupDTO>();
    private Set<ContactDTO> contacts = new HashSet<ContactDTO>();
    
    public AccountDTO() {}
    
    public AccountDTO(String login, String password) {
        this.login = login;
        this.password = password;
    }

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Set<GroupDTO> getGroups() {
		return groups;
	}

	public void setGroups(Set<GroupDTO> groups) {
		this.groups = groups;
	}

	public Set<ContactDTO> getContacts() {
		return contacts;
	}

	public void setContacts(Set<ContactDTO> contacts) {
		this.contacts = contacts;
	}

}
